--[[	okay, commenting out since I can't get it to play nice with Worldbuilder - and this is not the way we'll be doing it in the midterm anyhow.
function gadget:GetInfo()
  return {
    name = "Resource Killer",
    desc = "Sets starting energy storage to 0 for bishop players",
    author = "Bobthedinosaur",
    date = "2010-01-07",
    license = "CC-BY-NC",
    layer = 1,
    enabled = true
  }
end

local bishop = UnitDefNames.bishop.id

if not gadgetHandler:IsSyncedCode() then return end
--synced only

function gadget:UnitCreated(unitID, unitDefID, teamID)  
	if unitDefID == bishop then
		 local team=Spring.GetUnitTeam(unitID)
		 Spring.SetTeamResource(teamID, "s", 400)  -- full for a bishop
		 Spring.SetTeamResource(teamID, "es", 0)
	end
end
--]]
